<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Spring Boot Demo</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .container {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            text-align: center;
            max-width: 600px;
            width: 90%;
        }
        h1 {
            color: #333;
            margin-bottom: 1rem;
        }
        .message {
            font-size: 1.2rem;
            color: #666;
            margin-bottom: 2rem;
        }
        .api-section {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 8px;
            margin-top: 2rem;
        }
        .api-link {
            display: inline-block;
            background: #007bff;
            color: white;
            padding: 0.5rem 1rem;
            text-decoration: none;
            border-radius: 5px;
            margin: 0.5rem;
            transition: background-color 0.3s;
        }
        .api-link:hover {
            background: #0056b3;
        }
        .footer {
            margin-top: 2rem;
            color: #888;
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🚀 Spring Boot Demo</h1>
        <div class="message" th:text="${message}">欢迎信息</div>
        
        <div class="api-section">
            <h3>API 接口测试</h3>
            <p>点击下面的链接测试 API 接口：</p>
            <a href="/api/hello" class="api-link">Hello API</a>
            <a href="/api/hello?name=张三" class="api-link">Hello API (带参数)</a>
            <a href="/api/info" class="api-link">项目信息</a>
        </div>
        
        <div class="footer">
            <p>基于 Gradle 构建的 Spring Boot Web 应用</p>
            <p>Java 17 + Spring Boot 3.2.0</p>
        </div>
    </div>
</body>
</html>